package com.example.recharge;

import java.util.Comparator;


public class sort1 implements Comparator<recharge_record1.rechargerecord1> {
    @Override
//    public int compare(recharge_record1.rechargerecord1 t0, recharge_record1.rechargerecord1 t1) {
//        int i=0;
//        int i1 = t1.getCharge()-t0.getCharge();
//        i++;
//        return i1;
//    }
    public int compare(recharge_record1.rechargerecord1 t0, recharge_record1.rechargerecord1 t1) {
       int i=0;
        int i1 = t0.getTime().compareTo(t1.getTime());
        i++;
        return i1;
    }
}
